package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.*;

@Entity
public class Tag extends Model {
	public String name;
	@ManyToMany
	List<ActionItem> relatedActionItems;
	@ManyToMany
	List<Topic> relatedTopics;
	@ManyToMany
	List<User> subscribers;
	@ManyToMany
	List<Idea> relatedIdeas;

	public Tag(String name) {
		this.name = name;
		this.relatedActionItems = new ArrayList<ActionItem>();
		this.relatedTopics = new ArrayList<Topic>();
		this.subscribers = new ArrayList<User>();
		this.relatedIdeas = new ArrayList<Idea>();

	}
}
